import Vue from 'vue'
import Vuex from 'vuex'

// 引入第三方库，处理localStorage,sessionStorage,cookie
import store from 'store-gem.js';

Vue.use(Vuex)


var myStore = new store(localStorage)

const _store = new Vuex.Store({
    state:{
        user_info:'',
        idLogin:''
    },
    mutations:{
        user_info(state,msg){
            myStore.set('user_info',msg)
        },
        isLogin(state,msg){
            myStore.set('isLogin',msg)
        }
    }

})


export default _store





